Page({
  /**
   * 页面的初始数据
   */
  data: {
user:[],
sp:[],
num:''
  },
  onbutton:function(){
    wx.navigateTo({
      url:"/pages/znsc/znsc"
    })
  },
  nextto:function(){
    wx.navigateTo({
      url: '/pages/znzs-xq-address-xq/znzs-xq-address-xq',
    })
  },
  onbutton1:function(){
    wx.navigateTo({
      url: '/pages/sqtk/sqtk?tksp='+encodeURIComponent(JSON.stringify(this.data.sp))+'&num='+this.data.num
    })
  },
  onLoad(options){
      console.log(options.dd)
      this.setData({
        sp:JSON.parse(decodeURIComponent(options.dd)),
        num:options.num
    })
    
    
   

  },
  onReady(){
      console.log('bb')
  },
  onShow(){
      console.log('dd')
      this.setData({
        user:getApp().globalData.user

    })
    console.log(this.data.user)
  


  }
})
